for (let index = 0; index < tr.length; index++) {
    if (index % 2 == 0) {
        tr[index].style.background = 'read'
    } else {
        tr[index].style.background = 'blue'
    }

}